@mixin border-style { // 边框样式
  border: 1px solid #21488a;
  background-color: rgba(0, 10, 59, 0.3);
  border-radius: 20px;
}
@mixin border-img { // 边框图片
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: url(../assets/image/left-top.png) left top no-repeat,
  url(../assets/image/left-bottom.png) left bottom no-repeat,
  url(../assets/image/right-top.png) right top no-repeat,
  url(../assets/image/right-bottom.png) right bottom no-repeat;
  background-clip: content-box;
}
@mixin title { // 每个小块的标题样式
  font-weight: normal;
  line-height: 36px;
  color: #fff;
  background: $statistics;
  font-size: 16px;
  border-radius: 15px 15px 0 0;
  //position: relative;
  padding-left: 10px;
  &.center{
    text-align: center;
  }
  .all {
    position: absolute;
    left: 20px;
    top: 0;
    z-index: 100;
    cursor: pointer;
    font-size: 14px;
  }
  .more {
    position: absolute;
    right: 10px;
    top: 0;
    z-index: 90;
    line-height: 36px;
    font-size: 14px;
    color: #01c4f7;
    cursor: pointer;
    &:hover {
      color: #fff;
    }
  }
}

/* 悬浮菜单icon动画*/
@keyframes idle {
  from, to {
    transform: translate(-50%, -40%);
  }
  25% {
    transform: translate(-60%, -50%);
  }
  50% {
    transform: translate(-50%, -60%);
  }
  75% {
    transform: translate(-40%, -50%);
  }
}
.theme-bg-index {
  background: $themeBg!important;
  height: 100%;
  overflow-y: auto;
  /* 头部区域 */
  header {
    font-size: 24px;
    font-weight: bold;
    color: $textColor;
    position: relative;
    .center-img {
      width: 95%;
      background: url(../assets/image/topbg.png) no-repeat center top;
      background-size: 100% 100%;
      letter-spacing: 7px;
      height: 65px;
      text-align: center;
      line-height: 65px;
      margin: 0 auto;
      .export {
        position: absolute;
        right: 50px;
        top: 50%;
        height: 32px;
        line-height: 32px;
        text-align: center;
        width: 80px;
        font-size: 14px;
        border-radius: 5px;
        outline: none;
        background: #0b296f;
        letter-spacing: 3px;
        color: #fff;
        cursor: pointer;
        border: none;
        &:hover {
          background-color: #2159db;
        }
      }
    }
  }
  .navbar {
    margin:  -25px  40px 0;
    overflow: hidden;
    color: #fff;
    font-weight: bold;
    letter-spacing: 2px;
    .nav-item {
      width: 160px;
      text-align: center;
      cursor: pointer;
      line-height: 45px;
      border-radius: 11px;
      background: url(../assets/image/index-btn-bg.png) no-repeat;
      background-size: 100% 100%;
      &:hover{
        background: url(../assets/image/index-btn-bg-active.png) no-repeat;
        background-size: 100% 100%;
      }
    }
  }
  /* 内容区域 */
  section {
    padding: 10px 40px 45px;
    /*overflow: hidden;*/
    /* 数据展示区 */
    .project-show {
      color: $textColor;
      margin-bottom: 5px;
      .item {
        height: 80px;
        padding: 20px 0;
        text-align: center;
        background: url(../assets/image/border-bg.png) no-repeat;
        background-size: 100% 100%;
        margin-bottom: 5px;
        cursor: pointer;
        &:hover {
          background: url(../assets/image/border-bgactive.png) no-repeat;
          background-size: 100% 100%;
        }
        p:nth-of-type(1) {
          font-size: 16px;
          font-weight: bold;
          color: #fff;
        }
        p:nth-of-type(2) {
          font-size: 14px;
        }
      }
    }
    .bar {
      position: relative;
      /*height: 200px;*/
      overflow: visible;
      margin-bottom: 10px;
      @include border-style();
      .bar-img {
        @include border-img();
      }
      .title {
        @include title();
        &.tab-enterprise {
          text-align: left;
          span {
            display: inline-block;
            width: 49%;
            text-align: center;
            cursor: pointer;
            position: relative;
            z-index: 99;
            color: rgb(26, 124, 170);
          }
          .active {
            color: #fff;
          }
        }
      }
      .cont {
        position: relative;
        z-index: 10;
      }
    }
    .map {
      position: relative;
      overflow: visible;
      margin-bottom: 10px;
      @include border-style();
      .bar-img {
        @include border-img();
      }
      .title {
        @include title();
      }
      .cont {
        position: relative;
        z-index: 10;
      }
    }
    /* 分析的图形表格 */
    .t-body{
      padding: 10px;
      width: 100%;
      overflow: hidden;
      .t-header{
        background: rgba(255, 255, 255, 0.1);
        font-size: 14px;
        color: $textColor;
        line-height: 40px;
        height: 40px;
        div{
          display: flex;
          justify-content: space-between;
        }
        span{
          text-align: center;
        }
      }
      .seamless-warp{
        overflow: hidden;
        .con1 {
          width: 100%;
          padding: 0 0px;
          margin: 0;

          li{
            list-style: none;
            line-height: 36px;
            height: 36px;
            border-bottom: 1px solid $textColor;
            display: flex;
            justify-content: space-between;
            span{
              text-align: center;
              color:$textColor;
              font-size: 12px;
              display: inline-block;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
              word-break: break-all;
              border-right: 1px solid $textColor;
              padding: 0 5px;
              &:last-child{
                border-right: none;
              }
            }
            .to-link {
              color: #fff !important;
              cursor: pointer;
              text-decoration: underline;
            }
          }
          &.anim{
            transition: all 0.5s;
            margin-top: -30px;
          }
        }
      }
      .seamless-warp01{
        .con1{
          li{
            span{
              display: inline-block;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
              word-break: break-all;
            }
          }
        }
      }

    }

  }
  // 无数据
  .no-data{
    padding-top: 30px;
    p{
      padding: 0;
      margin: 0;
      text-align: center;
      color: $textColor;
      .no-data-icon{
        font-size: 80px;
        color: $textColor;
      }
    }
  }
}

.asideBar {
  width: 150px;
  height: 100%;

  background: $asideNavBg;
  position: fixed;
  z-index: 999;
  top: 0;
  left: -200px;
  transition: left 0.3s linear;
  display: flex;
  justify-content: space-around;
  flex-direction: column;
  .first-menu {
    width: 100%;
    text-align: center;
    position: relative;
    color: #fff;
    cursor: pointer;
    i {
      color: #fff;
      font-size: 28px;
    }
    p {
      font-size: 15px;
    }
    &:last-child{
      .menu-children{
        bottom:0;
        top:inherit
      }
    }
    &:hover{
      i {
        color: $asideNavTextHover;
        font-size: 28px;
      }
      p {
        color: $asideNavTextHover;
      }
    }
  }
  .menu-children {
    transition: all 1s;
    padding: 0;
    cursor: pointer;
    list-style: none;
    width: 150px;
    font-size: 15px;
    position: absolute;
    right: -150px;
    background: $asideNavBg;
    top: 0;
    .isArrow {
      position: relative;
      &::after {
        content: ">";
        position: absolute;
        top: -6px;
        right: -17px;
      }
    }
    li{
      line-height: 40px;
      font-size: 14px;
      position: relative;
      padding:0 10px;
      text-align: left;
      span{
        width: 100%;
        display: inline-block;
        position: relative;
      }
      .arrow{
        font-size: 16px!important;
        color: #fff;
        position: absolute;
        right:0;
        top:30%;
      }
      &:hover {
        background: rgba(255, 255, 255, 0.5);
        .child-span{
          color: $asideNavBgHover;
          font-weight: bold;
          .arrow{
            color: $asideNavBgHover;
          }
        }
      }
      &:last-child{
        .third-child{
          bottom:0;
          top:inherit
        }
      }
    }
    .active {
      background: rgba(255, 255, 255, 0.5);
      span{
        color: $asideNavBgHover;
        font-weight: bold;
      }
    }
  }
  .third-child {
    width: 150px;
    position: absolute;
    right: -150px;
    list-style: none;
    background: $asideNavBg;
    top: 0;
    padding: 0;
    li{
      line-height: 40px;
      &:hover {
        background: #fff;
        color: $asideNavBgHover;
      }
    }
    .active {
      background: #fff;
      color: $asideNavBgHover;
    }
  }

}
